import request from '@/utils/request'
// 登录接口
export const login = ({ mobile, password }) => request({
  method: 'post',
  url: '/sys/login',
  data: {
    mobile,
    password
  }
})

// 获取用户信息
export const getUserInfo = () => request({
  method: 'get',
  url: '/sys/profile'
})
// 修改密码
export const updatePassword = ({ oldPassword, newPassword }) => request({
  method: 'put',
  url: '/sys/user/updatePass',
  data: { oldPassword, newPassword }
})

// 部门负责人列表
export const getSimpleList = () => request('/sys/user/simple')
